﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pardusshipcalc
{
    class ImagePackHandling
    {
        public string EquipmentDatareturn { get; set; }

        public string ConvertEquipmentNameToImagePath(string comboBox)
        {
            //FIXME not cross-platform compatible!!!
           // Switch on given combo box path. 
            switch (comboBox)
            {
                case ":: None ::":
                case ":: Normal Guns::":
                case ":: Empire Guns ::":
                case "":
                case " ":
                case ":: Organic ::":
                case ":: Electro-Magnetic ::":
                case ":: Pardus ::":
                case "Conventional:":
                    EquipmentDatareturn = "0";
                    return EquipmentDatareturn;

                case "10MW Mining Laser":
                    EquipmentDatareturn = "equipment/MWmin010.png";
                    return EquipmentDatareturn;

                case "30MW Mining Laser":
                    EquipmentDatareturn = "equipment/MWmin030.png";
                    return EquipmentDatareturn;

                case "1MW Impulse Laser":
                    EquipmentDatareturn = "equipment/MWimp001.png";
                    return EquipmentDatareturn;

                case "5MW Impulse Laser":
                    EquipmentDatareturn = "equipment/MWimp005.png";
                    return EquipmentDatareturn;

                case "1MW Particle Laser":
                    EquipmentDatareturn = "equipment/MWpar001.png";
                    return EquipmentDatareturn;

                case "4MW Particle Laser":
                    EquipmentDatareturn = "equipment/MWpar004.png";
                    return EquipmentDatareturn;

                case "4MW LW Particle Laser":
                    EquipmentDatareturn = "equipment/MWlwpar004.png";
                    return EquipmentDatareturn;

                case "20MW Particle Laser":
                    EquipmentDatareturn = "equipment/MWpar020.png";
                    return EquipmentDatareturn;

                case "20MW LW Particle Laser":
                    EquipmentDatareturn = "equipment/MWlwpar020.png";
                    return EquipmentDatareturn;

                case "100MW Particle Laser":
                    EquipmentDatareturn = "equipment/MWpar100.png";
                    return EquipmentDatareturn;

                case "100MW LW Particle Laser":
                    EquipmentDatareturn = "equipment/MWlwpar100.png";
                    return EquipmentDatareturn;

                case "4MW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWgat004.png";
                    return EquipmentDatareturn;

                case "4MW LW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWlwgat004.png";
                    return EquipmentDatareturn;

                case "6MW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWgat006.png";
                    return EquipmentDatareturn;

                case "6MW LW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWlwgat006.png";
                    return EquipmentDatareturn;

                case "10MW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWgat010.png";
                    return EquipmentDatareturn;

                case "10MW LW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWlwgat010.png";
                    return EquipmentDatareturn;

                case "20MW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWgat020.png";
                    return EquipmentDatareturn;

                case "20MW LW Gatling Laser":
                    EquipmentDatareturn = "equipment/MWlwgat020.png";
                    return EquipmentDatareturn;

                case "35MW Plasma":
                    EquipmentDatareturn = "equipment/MWplas035.png";
                    return EquipmentDatareturn;

                case "40MW Plasma":
                    EquipmentDatareturn = "equipment/MWplas040.png";
                    return EquipmentDatareturn;

                case "60MW Plasma":
                    EquipmentDatareturn = "equipment/MWplas060.png";
                    return EquipmentDatareturn;

                case "140MW Particle Laser":
                    EquipmentDatareturn = "equipment/MWpar140.png";
                    return EquipmentDatareturn;

                case "140MW LW Particle Laser":
                    EquipmentDatareturn = "equipment/MWlwpar140.png";
                    return EquipmentDatareturn;

                case "Exoplasm Launcher":
                    EquipmentDatareturn = "equipment/exo.png";
                    return EquipmentDatareturn;

                case "Endoplasm Launcher":
                    EquipmentDatareturn = "equipment/endo.png";
                    return EquipmentDatareturn;

                case "Bio-Spore Array":
                    EquipmentDatareturn = "equipment/bsp.png";
                    return EquipmentDatareturn;

                case "Viral Glands":
                    EquipmentDatareturn = "equipment/viralg.png";
                    return EquipmentDatareturn;

                case "80MT Magnetic Defractor":
                    EquipmentDatareturn = "equipment/MTmd080.png";
                    return EquipmentDatareturn;

                case "120MT Magnetic Defractor":
                    EquipmentDatareturn = "equipment/MTmd120.png";
                    return EquipmentDatareturn;

                case "Large Pulse Cannon":
                    EquipmentDatareturn = "equipment/lpc.png";
                    return EquipmentDatareturn;

                case "Very Large Pulse Cannon":
                    EquipmentDatareturn = "equipment/vlpc.png";
                    return EquipmentDatareturn;

                case "Lucidi Enforcer I":
                    EquipmentDatareturn = "equipment/par01.png";
                    return EquipmentDatareturn;

                case "Lucidi Enforcer II":
                    EquipmentDatareturn = "equipment/par02.png";
                    return EquipmentDatareturn;

                case "Lucidi Conqueror":
                    EquipmentDatareturn = "equipment/par03.png";
                    return EquipmentDatareturn;

                case "Lucidi Plasma Thrower":
                    EquipmentDatareturn = "equipment/par04.png";
                    return EquipmentDatareturn;

                case "Nuclear Drive":
                    EquipmentDatareturn = "equipment/drive_nuclear.png";
                    return EquipmentDatareturn;

                case "Fusion Drive":
                    EquipmentDatareturn = "equipment/drive_fusion.png";
                    return EquipmentDatareturn;

                case "Enhanced Fusion Drive":
                    EquipmentDatareturn = "equipment/drive_fusion_enhanced.png";
                    return EquipmentDatareturn;

                case "Ion Drive":
                    EquipmentDatareturn = "equipment/drive_ion.png";
                    return EquipmentDatareturn;

                case "Antimatter Drive":
                    EquipmentDatareturn = "equipment/drive_antimatter.png";
                    return EquipmentDatareturn;

                case "Enhanced Antimatter Drive":
                    EquipmentDatareturn = "equipment/drive_antimatter_enhanced.png";
                    return EquipmentDatareturn;

                case "Hyper Drive":
                    EquipmentDatareturn = "equipment/drive_hyper.png";
                    return EquipmentDatareturn;

                case "Interphased Drive":
                    EquipmentDatareturn = "equipment/drive_interphased.png";
                    return EquipmentDatareturn;

                case "Enhanced Interphased Drive":
                    EquipmentDatareturn = "equipment/drive_interphased_enhanced.png";
                    return EquipmentDatareturn;

                // Armor
                case "Titanium (x1)":
                    EquipmentDatareturn = "equipment/armor_c1.png";
                    return EquipmentDatareturn;

                case "Tritanium (x2)":
                    EquipmentDatareturn = "equipment/armor_c2.png";
                    return EquipmentDatareturn;

                case "Zortrium (x3)":
                    EquipmentDatareturn = "equipment/armor_c3.png";
                    return EquipmentDatareturn;

                case "Neutronium (x4)":
                    EquipmentDatareturn = "equipment/armor_c4.png";
                    return EquipmentDatareturn;

                case "Adamantium (x5)":
                    EquipmentDatareturn = "equipment/armor_c5.png";
                    return EquipmentDatareturn;

                case "Ebidium (x6)":
                    EquipmentDatareturn = "equipment/armor_c6.png";
                    return EquipmentDatareturn;

                case "Worm-Slime (x2)":
                    EquipmentDatareturn = "equipment/armor_o2.png";
                    return EquipmentDatareturn;

                case "Mykoplasmic (x3)":
                    EquipmentDatareturn = "equipment/armor_o3.png";
                    return EquipmentDatareturn;

                case "Mutagen (x4)":
                    EquipmentDatareturn = "equipment/armor_o4.png";
                    return EquipmentDatareturn;

                case "Genotrope (x5)":
                    EquipmentDatareturn = "equipment/armor_o5.png";
                    return EquipmentDatareturn;

                case "Fermion (x2)":
                    EquipmentDatareturn = "equipment/armor_e2.png";
                    return EquipmentDatareturn;

                case "Boson (x3)":
                    EquipmentDatareturn = "equipment/armor_e3.png";
                    return EquipmentDatareturn;

                case "Positron (x4)":
                    EquipmentDatareturn = "equipment/armor_e4.png";
                    return EquipmentDatareturn;

                case "Anti-Neutrino (x5)":
                    EquipmentDatareturn = "equipment/armor_e5.png";
                    return EquipmentDatareturn;

                case "Pardus I":
                    EquipmentDatareturn = "equipment/armor_c1.png";
                    return EquipmentDatareturn;

                case "Pardus II":
                    EquipmentDatareturn = "equipment/armor_c2.png";                   
                    return EquipmentDatareturn;

                case "Pardus III":
                    EquipmentDatareturn = "equipment/armor_c3.png";                   
                    return EquipmentDatareturn;

                case "Pardus IV":
                    EquipmentDatareturn = "equipment/armor_c4.png";                    
                    return EquipmentDatareturn;

                case "Pardus V":
                    EquipmentDatareturn = "equipment/armor_c5.png";                    
                    return EquipmentDatareturn;

                case "Pardus VI":
                    EquipmentDatareturn = "equipment/armor_c6.png";                    
                    return EquipmentDatareturn;


                // Shields

                case "Tiny":
                    EquipmentDatareturn = "equipment/shield_tiny.png";
                    return EquipmentDatareturn;

                case "Small":
                    EquipmentDatareturn = "equipment/shield_small.png";
                    return EquipmentDatareturn;

                case "Standard":
                    EquipmentDatareturn = "equipment/shield_standard.png";
                    return EquipmentDatareturn;

                case "Medium":
                    EquipmentDatareturn = "equipment/shield_medium.png";
                    return EquipmentDatareturn;

                case "Large":
                    EquipmentDatareturn = "equipment/shield_large.png";
                    return EquipmentDatareturn;

                case "Q-Small":
                    EquipmentDatareturn = "equipment/shield_qsmall.png";
                    return EquipmentDatareturn;

                case "Q-Standard":
                    EquipmentDatareturn = "equipment/shield_qstandard.png";
                    return EquipmentDatareturn;

                case "Q-Medium":
                    EquipmentDatareturn = "equipment/shield_qmedium.png";
                    return EquipmentDatareturn;

                case "Q-Large":
                    EquipmentDatareturn = "equipment/shield_qlarge.png";
                    return EquipmentDatareturn;

                case "Huge":
                    EquipmentDatareturn = "equipment/shield_huge.png";
                    return EquipmentDatareturn;

                case "Q-Huge":
                    EquipmentDatareturn = "equipment/shield_qhuge.png";
                    return EquipmentDatareturn;

                case "L-Huge":
                    EquipmentDatareturn = "equipment/shield_lhuge.png";
                    return EquipmentDatareturn;

                case "LQ-Large":
                    EquipmentDatareturn = "equipment/shield_lqlarge.png";
                    return EquipmentDatareturn;

                case "LQ-Huge":
                    EquipmentDatareturn = "equipment/shield_lqhuge.png";
                    return EquipmentDatareturn;

                // Missiles
                case "P80 Sidewinder":
                    EquipmentDatareturn = "equipment/missile0.png";
                    return EquipmentDatareturn;

                case "KL760 Homing":
                    EquipmentDatareturn = "equipment/missile1.png";
                    return EquipmentDatareturn;

                case "LV111 Intelligent":
                    EquipmentDatareturn = "equipment/missile2.png";
                    return EquipmentDatareturn;

                case "NN500 Fleet":
                    EquipmentDatareturn = "equipment/missile3.png";
                    return EquipmentDatareturn;

                case "NN550 Fleet":
                    EquipmentDatareturn = "equipment/missile4.png";
                    return EquipmentDatareturn;

                case "Imperial MO89 Lord":
                    EquipmentDatareturn = "equipment/missile20.png";
                    return EquipmentDatareturn;

                case "Imperial G-7 Smartwinder":
                    EquipmentDatareturn = "equipment/missile30.png";
                    return EquipmentDatareturn;

                case "Imperial A/50 Pogo":
                    EquipmentDatareturn = "equipment/missile31.png";
                    return EquipmentDatareturn;

                case "Imperial D/70 Havar":
                    EquipmentDatareturn = "equipment/missile32.png";
                    return EquipmentDatareturn;

                case "Imperial Elite Mk.I":
                    EquipmentDatareturn = "equipment/missile33.png";
                    return EquipmentDatareturn;

                case "Imperial Elite Mk.II":
                    EquipmentDatareturn = "equipment/missile34.png";
                    return EquipmentDatareturn;

                case "King Relon":
                    EquipmentDatareturn = "equipment/missile35.png";
                    return EquipmentDatareturn;

                case "King Kraak":
                    EquipmentDatareturn = "equipment/missile36.png";
                    return EquipmentDatareturn;

                case "Royal Redeemer":
                    EquipmentDatareturn = "equipment/missile37.png";
                    return EquipmentDatareturn;
            }
            return "Error";
        }



    }
}
